import upload from '@/utils/upload'
import { request,request1 } from '@/utils/request'

// 获取送货运单列表
export function getDeliverGoodsData(data) {
	return request1({
		url: '/purchase-coal-send-car/show-order-from-applet',
		method: 'POST',
		data: data
	})
}
// 销售取消运单
export function cancelOrderApi(data) {
	return request1({
		url: '/wechat/driver-close-order',
		method: 'POST',
		data: data
	})
}
// 采购取消运单
export function cancelPurOrderApi(id) {
	return request1({
		url: `/purchase-coal-send-car/cancel-id/`+id,
		method: 'GET'
	})
}
// 获取某条送货运单详情
export function getDeliverOne(id) {
	return request1({
		url: `/purchase-coal-send-car/show-orderDetails-from-consolidation?id=${id}`,
		method: 'GET'
	})
}
// 获取拉货运单列表
export function getPullinGoodsData(data) {
	return request1({
		url: '/coal-sendCar/show-order-from-applet',
		method: 'POST',
		data: data
	})
}
// 展示公告
export function showMessageApi(data) {
	return request1({
		url: '/message-warning/show-message-info',
		method: 'POST',
		data: data
	})
}
// 运单列表重新上传
export function syncNetGoodsByDriver(data) {
	return request({
		url: '/queue/waybill/syncNetGoodsByDriver',
		method: 'PUT',
		data: data
	})
}
